package com.my.study.validator.elemrnt;

import com.my.study.validator.chain.ValidatorChain;

/**
 * @author: yidujun
 * @create: 2021/06/15 19:27
 */
public class ValidatorElement<T> {

    /**
     * 验证对象
     */
    private T target;

    private ValidatorChain chain;

    public ValidatorElement(T target) {
        this.target = target;
        chain = new ValidatorChain();
    }
}
